@echo off

echo ------------ Remove tests
for /R /D %%i in (*) do if exist %%i\tests echo %%i && pushd %%i\tests && del /S /F /Q * && cd .. && rmdir tests && popd
echo ------------ Remove checkers
for /R /D %%i in (*) do if exist %%i\check.exe echo %%i && del %%i\check.exe 

echo ------------ Get tests
for /R /D %%i in (*) do if exist %%i\tests.7z echo %%i && pushd %%i && 7z x tests.7z && popd
echo ------------ Compile .cpp checkers
for /R /D %%i in (*) do if exist %%i\check.cpp echo %%i && pushd %%i && g++ -static -Wall -O2 -ID:\home\Burunduk1\testlib check.cpp -o check.exe && popd
echo ------------ Compile .dpr checkers
for /R /D %%i in (*) do if exist %%i\check.dpr echo %%i && pushd %%i && dcc32 -cc check.dpr -IC:\Soft\teslib\kitten\ && popd
exit

